{layout name="public/layout" /}
{include file="console/title" /}
<script>
$(function(){
  $.post("{:url('Warehouse/Query/search')}",{key:""},function(result){
          $("#result").html(result);
        });
    //绑定输入框事件
    $('#input-search').bind('input propertychange', function() {
        //$('#result').html($(this).val().length + ' characters');
        $.post("{:url('Warehouse/Query/search')}",{key:$(this).val()},function(result){
          $("#result").html(result);
        });
    });
    
})
</script>